package com.victor.entity.finefood;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 美食类
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "food")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Food {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "f_id", unique = true, nullable = false, length = 11)
	private Integer f_id;// 主键

	@Column(name = "f_name", length = 50)
	private String f_name;// 名称

	@Column(name = "f_theme", length = 50)
	private String f_theme;// 主题类别

	@Column(name = "f_position", length = 50)
	private String f_position;// 位置--全

	@Column(name = "f_position_province", length = 50)
	private String f_position_province;// 位置--省

	@Column(name = "f_position_city", length = 50)
	private String f_position_city;// 位置--市

	@Column(name = "f_position_area", length = 50)
	private String f_position_area;// 位置--区

	@Column(name = "f_position_street", length = 50)
	private String f_position_street;// 位置--街道

	@Column(name = "f_position_detailed", length = 50)
	private String f_position_detailed;// 位置--详细

	@Column(name = "f_position_remarks", length = 50)
	private String f_position_remarks;// 位置备注

	@Column(name = "f_introduce", length = 50)
	private String f_introduce;// 饭店介绍

	@Column(name = "f_video", length = 50)
	private String f_video;// 饭店介绍视频

	@Column(name = "f_ifhomepage", length = 50)
	private String f_ifhomepage;// 是否为首页推荐 0否 1是

	@Column(name = "t_id", length = 50)
	private String t_id; // 饭店类型表id

	@Column(name = "adminid", length = 50)
	private String adminid; // 创建人id

	@Column(name = "f_frozen", length = 50, columnDefinition = "INT default 0")
	private String f_frozen;// 是否冻结标志 0.正常 1.冻结

	@Column(name = "f_frozen_starttime", length = 50)
	private String f_frozen_starttime;// 冻结起始时间

	@Column(name = "f_frozen_endtime", length = 50)
	private String f_frozen_endtime;// 冻结终止时间

	@Column(name = "f_frozen_cycle", length = 50)
	private String f_frozen_cycle;// 冻结周期 0.终身冻结 1.一小时, 2.一天, 3.一周, 4.一个月,5.一年,6.二年,7.三年,

	@Column(name = "f_frozen_title", length = 50)
	private String f_frozen_title;// 冻结原由标题

	@Column(name = "f_frozen_details", length = 50)
	private String f_frozen_details;// 冻结原由详情

	@Transient
	private FoodType foodType;// 饭店类型

	@Transient
	private List<FoodPhotoGroup> foodPhotoGroups;// 多个图片组

	@Transient
	private List<FoodComment> foodComments; // 多个饭店评价

	@Transient
	private List<FoodMeal> foodMeals;// 多个美食套餐

}
